default: all

all: libbox2dwrapper.so

libbox2dwrapper.so: b2Vec2.o b2Vec3.o
	gcc -O2 -o libbox2dwrapper.so -shared -fPIC b2Vec2.o b2Vec3.o -lBox2D -L/usr/local/lib

b2Vec2.o: b2Vec2.cpp
	gcc -c b2Vec2.cpp -I/usr/local/include/Box2D/

b2Vec3.o: b2Vec3.cpp
	gcc -c b2Vec3.cpp -I/usr/local/include/Box2D/

clean:
	rm *.o
